package com.boatAnchorAssistant.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boatAnchorAssistant.pojo.dto.userDataDictionary.UserDataDictionaryDto;
import com.boatAnchorAssistant.pojo.entity.UserDataDictionary;
import org.springframework.stereotype.Repository;

    import com.boatAnchorAssistant.pojo.dto.userDataDictionary.SelectUserDataDictionaryDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Repository
public interface UserDataDictionaryMapper extends BaseMapper< UserDataDictionary > {

    /**
    * 搜索用户数据字典关联表
    * @param dto
    * @return
    */
    Page< UserDataDictionary > selectUserDataDictionary(SelectUserDataDictionaryDto dto);

    List<UserDataDictionary> selectByUserIdAndTypeId(Long typeId, Long userId);
    /**
     * 批量获取用户下的区域
     * @param userIds
     * @return
     */
    List<UserDataDictionaryDto> getListByUserIds(List<Long> userIds, Long typeId);

}